import { classNames } from '../utils/t';
import { defineComponent } from 'vue';
import { Attr_, Btn_ } from '../interface';
const Btn=defineComponent<Attr_&Btn_>({ name:"Btn",
  setup(_,{attrs,slots}){
    return()=>
      <button class={classNames({
          [`btn-${attrs.type} btn`]:attrs.type!==undefined
        })}
      >{slots.default()}</button>
  }
})
export default Btn;